<?xml version="1.0" encoding="utf-8"?>
<WITD application="Work item type editor" version="1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/typedef">
  <WORKITEMTYPE xmlns="" name="Impediment">
    <DESCRIPTION>Includes information about a particular impediment</DESCRIPTION>
    <FIELDS>
      <FIELD type="Integer" name="Id" refname="System.Id">
        <HELPTEXT>Human readable, auto-populated numeric Id</HELPTEXT>
      </FIELD>
      <FIELD type="TreePath" name="Area Path" refname="System.AreaPath">
        <HELPTEXT>The AreaPath can be used to categorise or theme a Sprint impediment and can be different to the Product Backlog AreaPath</HELPTEXT>
      </FIELD>
      <FIELD type="String" name="Title" refname="System.Title">
        <HELPTEXT>Name or short description that clearly identifies the impediment</HELPTEXT>
        <REQUIRED />
        <CANNOTLOSEVALUE />
      </FIELD>
      <FIELD type="String" name="Assigned To" refname="System.AssignedTo" syncnamechanges="true">
        <HELPTEXT>The team member currently assigned to act on the impediment</HELPTEXT>
        <ALLOWEDVALUES expanditems="true" filteritems="excludegroups">
          <LISTITEM value="[project]\Project Administrators" />
          <LISTITEM value="[project]\Contributors" />
        </ALLOWEDVALUES>
      </FIELD>
      <FIELD type="History" name="History" refname="System.History">
        <HELPTEXT>Discussion thread and other historical information including fields that have changed, by whom and when.</HELPTEXT>
      </FIELD>
      <FIELD type="String" name="State" refname="System.State">
        <HELPTEXT>This is the status of the current status of the impediment as selected by a team member</HELPTEXT>
      </FIELD>
      <FIELD type="PlainText" name="Description" refname="System.Description">
        <HELPTEXT>Detailed description of the impediment</HELPTEXT>
      </FIELD>
      <FIELD type="TreePath" name="Iteration Path" refname="System.IterationPath">
        <HELPTEXT>Choose the Sprint in which this impediment will be worked on</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="History Date (Scrum v3)" refname="Scrum.v3.HistoryDate">
        <COPY from="clock" />
        <DEFAULT from="clock" />
      </FIELD>
    </FIELDS>
    <WORKFLOW>
      <STATES>
        <STATE value="Open" />
        <STATE value="Resolved" />
        <STATE value="Deleted" />
      </STATES>
      <TRANSITIONS>
        <TRANSITION from="" to="Open">
          <REASONS>
            <DEFAULTREASON value="New" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Open" to="Resolved">
          <REASONS>
            <DEFAULTREASON value="Impediment is resolved" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Open" to="Deleted">
          <REASONS>
            <DEFAULTREASON value="Item deleted" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Resolved" to="Open">
          <REASONS>
            <DEFAULTREASON value="Item reopened" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Resolved" to="Deleted">
          <REASONS>
            <DEFAULTREASON value="Item deleted" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Deleted" to="Open">
          <REASONS>
            <DEFAULTREASON value="Deleted item restored" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Deleted" to="Resolved">
          <REASONS>
            <DEFAULTREASON value="Deleted item restored" />
          </REASONS>
        </TRANSITION>
      </TRANSITIONS>
    </WORKFLOW>
    <FORM>
      <Layout>
        <Group>
          <Column PercentWidth="100">
            <Control FieldName="System.Title" Type="FieldControl" Label="Title" LabelPosition="Left" />
            <Control FieldName="System.AreaPath" Type="WorkItemClassificationControl" Label="Area" LabelPosition="Left" />
          </Column>
        </Group>
        <Group>
          <Column PercentWidth="50">
            <Group Label="Planning">
              <Column PercentWidth="100">
                <Control FieldName="System.IterationPath" Type="WorkItemClassificationControl" Label="Sprint" LabelPosition="Left" />
              </Column>
            </Group>
          </Column>
          <Column PercentWidth="50">
            <Group Label="Status">
              <Column PercentWidth="100">
                <Control FieldName="System.AssignedTo" Type="FieldControl" Label="Owned By" LabelPosition="Left" />
                <Control FieldName="System.State" Type="FieldControl" Label="Current Status" LabelPosition="Left" />
              </Column>
            </Group>
          </Column>
        </Group>
        <TabGroup>
          <Tab Label="Description and History">
            <Group>
              <Column PercentWidth="100">
                <Control FieldName="System.Description" Type="HtmlFieldControl" Label="Description:" LabelPosition="Top" Dock="Top" MinimumSize="(100,100)" />
                <Control FieldName="System.History" Type="WorkItemLogControl" Label="History:" LabelPosition="Top" Dock="Fill" />
              </Column>
            </Group>
          </Tab>
          <Tab Label="Impedes">
            <Control Type="LinksControl" Name="BacklogItems" Label="Impeded Backlog Items:" LabelPosition="Top">
              <LinksControlOptions>
                <WorkItemLinkFilters FilterType="include">
                  <Filter LinkType="Scrum.ImpededBy" FilterOn="reversename" />
                </WorkItemLinkFilters>
                <WorkItemTypeFilters FilterType="include">
                  <Filter WorkItemType="Product Backlog Item" />
                </WorkItemTypeFilters>
                <ExternalLinkFilters FilterType="excludeAll"/>
                <LinkColumns>
                  <LinkColumn RefName="System.ID" />
                  <LinkColumn RefName="System.Links.LinkType" />
                  <LinkColumn RefName="System.WorkItemType" />
                  <LinkColumn RefName="System.Title" />
                  <LinkColumn RefName="System.Description" />
                  <LinkColumn RefName="System.State" />
                  <LinkColumn LinkAttribute="System.Links.Comment" />
                </LinkColumns>
              </LinksControlOptions>
            </Control>
          </Tab>
          <Tab Label="All Links">
            <Control Type="LinksControl" Name="OtherLinks">
              <LinksControlOptions>
                <LinkColumns>
                  <LinkColumn RefName="System.ID" />
                  <LinkColumn RefName="System.Links.LinkType" />
                  <LinkColumn RefName="System.WorkItemType" />
                  <LinkColumn RefName="System.Title" />
                  <LinkColumn RefName="System.AssignedTo" />
                  <LinkColumn RefName="System.State" />
                  <LinkColumn LinkAttribute="System.Links.Comment" />
                </LinkColumns>
              </LinksControlOptions>
            </Control>
          </Tab>
          <Tab Label="File Attachments">
            <Control Type="AttachmentsControl" LabelPosition="Top" />
          </Tab>
          <Tab Label="Process Guidance">
            <Control Type="WebpageControl" LabelPosition="Top" Dock="Fill">
              <WebpageControlOptions AllowScript="false">
                <Link UrlRoot="http://www.scrumforteamsystem.com/" UrlPath="/processguidance/v3/{0}/{1}" >
                  <Param Index="0" Value="System.WorkItemType" Type="Current" />
                  <Param Index="1" Value="System.State" Type="Current"/>
                </Link>
              </WebpageControlOptions>
            </Control>
          </Tab>
        </TabGroup>
      </Layout>
    </FORM>
  </WORKITEMTYPE>
</WITD>